<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:tr="http://myfaces.apache.org/trinidad"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich" 
	lang="pt-br">
<head>
	<title>Nova Janela</title>
	<link rel="stylesheet" media="screen" type="text/css" href="css/external.css" />
	
	<script type="text/javascript" src="script/jquery.js"></script>
	<script type="text/javascript" src="script/default.js"></script>
</head>
<body onload="horizontalMenu();">

	<h1> TESTE </h1>
	
	<br />
	
	<div id="teste">
		<ul id="menu_dropdown" class="menubar">
			<ui:repeat value="#{homeController.allMenu}" var="item">
	    		<li class="submenu">
	    			<a href="prodscat.jsf?cat=#{item.id}">#{item.name}</a> 
	      			<ul class="menu">
	      				<ui:repeat value="#{item.submenu}" var="item2"> 
	        				<li>
	        					<a href="prodscat.jsf?cat=#{item2.id}">#{item2.name}</a>
	        				</li> 
	        			</ui:repeat>
	      			</ul> 
	    		</li>
	    	</ui:repeat>
	    </ul>
	</div>

</body>
</html>